package com.young.pattern.prototypePattern;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.extern.slf4j.Slf4j;

import java.io.Serializable;

/**
 * 附件类
 */
@Data
@Slf4j
@EqualsAndHashCode
public class Attachment implements Serializable {
    private String name;
    public void download(){
      log.info("下载附件,附件名称为:[{}]",name);
    }
}
